﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace O.M.Production.Domain.Entity
{
    /// <summary>
    /// 委外加工表
    /// </summary>
    [SugarTable("outsourcing_processing")]
    public class outsourcing_processing : BaseModel
    {
        /// <summary>
        /// 生产ID
        /// </summary>
        [SugarColumn(ColumnDescription = "生产ID", IsPrimaryKey = true, Length = 100)]
        public string produce_id { get; set; }

        /// <summary>
        /// 产品ID
        /// </summary> 
        [SugarColumn(ColumnDescription = "产品ID", Length = 100)]
        public string? product_id { get; set; }

        /// <summary>
        /// 物料ID
        /// </summary> 
        [SugarColumn(ColumnDescription = "物料ID", Length = 100)]
        public string? material_id { get; set; }

        /// <summary>
        /// 生产主题
        /// </summary> 
        [SugarColumn(ColumnDescription = "生产主题", Length = 100)]
        public string? production_theme { get; set; }

        /// <summary>
        /// 单据日期
        /// </summary>
        [SugarColumn(ColumnDescription = "单据日期")]
        public DateTime? document_date { get; set; }

        /// <summary>
        /// 成品概述
        /// </summary>
        [SugarColumn(ColumnDescription = "成品概述", Length = 100)]
        public string? overview_of_finished_products { get; set; }

        /// <summary>
        /// 委托单位
        /// </summary>
        [SugarColumn(ColumnDescription = "委托单位", Length = 100)]
        public string? commissioned_agent { get; set; }

        /// <summary>
        /// 联系人
        /// </summary>
        [SugarColumn(ColumnDescription = "联系人", Length = 100)]
        public string? contacts { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        [SugarColumn(ColumnDescription = "联系电话", Length = 100)]
        public string? contacts_phone { get; set; }

        /// <summary>
        /// 关联项目
        /// </summary>
        [SugarColumn(ColumnDescription = "关联项目", Length = 100)]
        public string? associated_project { get; set; }

        /// <summary>
        /// 生产类型
        /// </summary>
        [SugarColumn(ColumnDescription = "生产类型", Length = 100)]
        public string? production_type { get; set; }

        /// <summary>
        /// 销售订单
        /// </summary>
        [SugarColumn(ColumnDescription = "销售订单", Length = 100)]
        public string? sales_order { get; set; }

        /// <summary>
        /// 负责人
        /// </summary>
        [SugarColumn(ColumnDescription = "负责人", Length = 100)]
        public string? person_in_charge { get; set; }

        /// <summary>
        /// 负责人电话
        /// </summary>
        [SugarColumn(ColumnDescription = "负责人电话", Length = 100)]
        public string? person_in_charge_phone { get; set; }

        /// <summary>
        /// 部门
        /// </summary>
        [SugarColumn(ColumnDescription = "部门", Length = 100)]
        public string? department { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnDescription = "备注", Length = 100)]
        public string? remarks { get; set; }
        /// <summary>
        /// 附件
        /// </summary>
        [SugarColumn(ColumnDescription = "附件", Length = 200)]
        public string? attachment { get; set; }
    }
}
